<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>修改课程</title>
    <jsp:include page="../../include/resource.jsp"/>
</head>
<body>
<jsp:include page="../../include/header.jsp"/>
<div class="container" style="padding-left: 150px;padding-right: 150px">

    <div class="panel panel-success">
        <div class="panel-heading">
            <h3 class="panel-title">修改课程</h3>
        </div>
        <form class="form-horizontal"  action="/member/course/update.do" method="post">
            <input type="hidden" name="id" value="${course.id}">
            <div class="panel-body">
                <div class="input-group">
                    <span class="input-group-addon" >课程名</span>
                    <input type="text" name="name" class="form-control" value="${course.name}" >
                </div>
                <br/>
                <div class="input-group">
                    <span class="input-group-addon" >课程人数</span>
                    <input type="number" name="num" class="form-control" value="${course.num}" >
                </div>
                <br/>
                <div class="input-group">
                    <span class="input-group-addon" >课程开始时间</span>
                    <input type="text" name="starttime" class="form-control" value="${course.starttime}" >
                </div>
                <br/>
                <div class="input-group">
                    <span class="input-group-addon" >课程结束时间</span>
                    <input type="text" name="endtime" class="form-control" value="${course.endtime}">
                </div>
                <br/>
                <div class="input-group">
                    <span class="input-group-addon" >简介</span>
                   <textarea name="descript" class="form-control" >${course.descript}</textarea>
                </div>
                <br/>
                <div class="input-group">
                    <span class="input-group-addon" >训练安排</span>
                    <textarea id="content" name="content" class="form-control">${course.content}</textarea>
                </div>
                <br/>
                <div class="input-group" style="float: right">
                    <button class="btn btn-primary" type="submit">修改</button>
                </div>
            </div>
        </form>
    </div>
</div>
<script>
    KindEditor.ready(function (K) {
        window.editor = K.create("#content", {
            uploadJson: '/file/uploadFile.do',
            fileManagerJson: '',
            allowFileManager: false
        });
    });
</script>
</body>
</html>
